package com.qipay.notify;

import com.qipay.baas.model.Cp;
import com.qipay.baas.model.NotifyLog;
import com.qipay.baas.model.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.util.List;

public interface NotifyLogService {
    @Transactional
    void setOrderSuccess(Order order, Cp cp) throws IOException;

    @Transactional
    List<NotifyLog> getNotifyList(int size);

    @Async
    @Transactional
    void send(NotifyLog notifyLog);
}
